
<?php if ($sf_user->hasFlash('message_success')): ?>
    <div class="success largest">
        <?php echo $sf_user->getFlash('message_success') ?>
    </div>
<?php endif; ?>
<?php if ($sf_user->hasFlash('message_failed')): ?>
    <div class="error largest">
        <?php echo $sf_user->getFlash('message_failed') ?>
    </div>
<?php endif; ?>